<?php slot('title',sprintf('CorpPon - '.$account->getCompanyName().' - Product Deals' ))?>

<div id="company-logo-space" class="corner">
<span class="nombre-empresa"><?php echo $account->getCompanyName(); ?></span> - Product Deals

</div>
 <?php foreach ($products as $product): ?>

    <?php if ($product->getHighlight() == TRUE ){ ?>
    <span class="premium-product-list">
        
       

            <span class="picture-premium">
                
                <!--<span class="picture"><a href="<?php echo url_for('product_show',$product) ?>"><img src="/images/images/temp-nomarl.jpg" width="129" height="121" alt=" " /></a></span>-->
            <span class="picture"><a href="<?php echo url_for('account_product_show',$product) ?>"><img src="/uploads/products/list/<?php echo $product->getPhoto1(); ?>" /></a></span>
        </span>
       		<span class="content-list">
            	 <span class="title-product-list"><?php echo $product->getName() ?></span>
            <span class="main-desc-list"><?php echo $product->getDescription() ?><br /> <a href="<?php echo url_for('account_product_show',$product) ?>" class="button-list">details</a>  
            </span>
            
            <div id="price-box-list">
                    <span class="price"><span class="symbol-price">$</span> <?php echo $product->getDiscountedPrice() ?></span>
                    <div id="offer">
                            <?php echo number_format($product->getDiscount(), 0) ?>% off
                    </div>
            </div>
           
            </span>
    </span>
    
    <span id="shadow-bottom"></span>
    <?php } ?>

<?php if ($product->getHighlight() == FALSE ){ ?>


    <span class="premium-product-list">
        
       

            <span class="picture-premium">
                
                <!--<span class="picture"><a href="<?php echo url_for('product_show',$product) ?>"><img src="/images/images/temp-nomarl.jpg" width="129" height="121" alt=" " /></a></span>-->
            <span class="picture"><a href="<?php echo url_for('account_product_show',$product) ?>"><img src="/uploads/products/list/<?php echo $product->getPhoto1(); ?>" /></a></span>
        </span>
       		<span class="content-list">
            	 <span class="title-product-list"><?php echo $product->getName() ?></span>
            <span class="main-desc-list"><?php echo $product->getDescription() ?><br /> <a href="<?php echo url_for('account_product_show',$product) ?>" class="button-list">details</a>  
            </span>
            
            <div id="price-box-list">
                    <span class="price"><span class="symbol-price">$</span> <?php echo $product->getDiscountedPrice() ?></span>
                    <div id="offer">
                            <?php echo number_format($product->getDiscount(), 0) ?>% off
                    </div>
            </div>
           
            </span>
    </span>
    
    <span id="shadow-bottom"></span>
<?php } ?>

<div id="shadow-bottom"></div>
<div style="height:10px;"></div>
 <?php endforeach; ?>


<div class="pagination">
<?php if ($pager->haveToPaginate()): ?>
  <span><?php echo 'Showing from '.$pager->getFirstIndice().' to '.$pager->getLastIndice().' of '.$pager->count().' products'; ?></span><br/>
  <?php if (!$pager->isFirstPage()) :  ?>
  <a href="<?php echo url_for('products/index') ?>"><?php echo 'First' ?></a>

  <a href="<?php echo url_for('products/index') ?>?page=<?php echo $pager->getPreviousPage() ?>"><?php echo 'Previous' ?></a>
  <?php endif; ?>

  <?php foreach ($pager->getLinks() as $page): ?>
    <?php if ($page == $pager->getPage()): ?>
      <?php echo $page ?>
    <?php else: ?>
      <a href="<?php echo url_for('products/index') ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
    <?php endif; ?>
  <?php endforeach; ?>

  <?php if (!$pager->isLastPage()) :  ?>
  <a href="<?php echo url_for('products/index') ?>?page=<?php echo $pager->getNextPage() ?>"> <?php echo 'Next' ?></a>

  <a href="<?php echo url_for('products/index') ?>?page=<?php echo $pager->getLastPage() ?>"><?php echo 'Last' ?></a>
  <?php endif; ?>

<?php endif; ?>
</div>